import request from "@/utils/request";

export function getMyLikeAPI(params) {
  return request({
    url: "user/getMyLike",
    method: "GET",
    params,
  });
}

export function addMyLikeAPI(id){
  return request({
      url:'/user/addMyLike/'+id,
      method:'POST',
  })
}

export function deleteMyLikeAPI(id) {
  return request({
    url: "user/deleteMyLike/"+id,
    method: "DELETE",
  });
}

export function findLikeAPI(articleID) {
  return request({
    url: "user/findLike/"+articleID,
    method: "GET",
  });
}